LockOutUser Method

Syntax

Context.Security.LockOutUser as L ()

Context.Security.LockOutUser as L (UserName as C)

Arguments

UserNameCharacter

Optional. The user name of the user to be locked out. If no user name is used then the current user is locked out.

Returns

resultLogical

Returns .T. if the user was locked out; otherwise .F.

Description

Locks out the specified user.

Discussion

Context.Security.LockOutUser() locks out the specified user, or when no user is specified, the current user is locked out. Check Context.Security.CallResult.Success before using the return value.